﻿using System;

namespace HealthCommunity
{
	public partial class ActivityList : System.Web.UI.Page
	{
		protected void Page_PreRender(object sender, EventArgs e)
		{
			divoperator.Visible = false;

			var user = SiteContext.Current.CurrentUser;

			if (user != null)
			{
				if (user.Role != null)
				{
					divoperator.Visible = user.Role.RoleName.ToLower().Equals("storeadmin") || user.Role.RoleName.ToLower().Equals("admin") || user.Role.RoleName.ToLower().Equals("storemember") || user.Role.RoleName.ToLower().Equals("storemanager");
				}
			}
		}
	}
}